<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<script type="text/javascript">
function ocultaCapasError(){
	document.getElementById("capaErroresValidacion").style.visibility = "hidden";
	document.getElementById("capaBlockerErrores").style.visibility = "hidden";
}
</script>

<s:if test="hasFieldErrors()">
    <div id="capaBlockerErrores"  class="capaBlocker"></div>
    
    <div id="capaErroresValidacion" class="capaError">
   		<table class="tablaError" width="100%">
   			<tr>
   				<td class="tituloTablaError"><s:text name="label.error"/></td>
   			</tr>
   			<s:iterator value="fieldErrors">
    		<tr>
    			<td class="columnaError">
   					<s:iterator value="value">
   						- <s:property/>
   					</s:iterator>
      			</td>
    		</tr>
    		</s:iterator>
    		<tr>
    			<td class="columnaError">&nbsp;</td>
    		</tr>
    		<tr>
   				<td class="faldaTabla" align="right">
   					<s:submit value="%{getText('label.aceptar')}" onclick="ocultaCapasError();" cssClass="submitButton" />
   				</td>
   			</tr>
   		</table>
   	</div>
</s:if>
